<template>
  <div class="mini-home">
    <h1>創世合击 再创辉煌</h1>
    <div>全天<span>24</span>小时活动不断，激情不停！</div>
    <div>装备全爆，草根消费，彻底封挂</div>
    <div class="table">
      <div>
        <span>1.80創世合击 新区开放</span>
      </div>
      <div>
        <span>首区首战拿沙奖励****</span>
      </div>
      <div>
        <span @click="handlePatch"> 游戏不开门请下载此补丁 </span>
      </div>
      <div>
        <span @click="handleJoin"> 点击进入玩家QQ群 </span>
      </div>
      <div>
        <span @click="handlePay"> 点击进入在线充值元宝 </span>
      </div>
      <div>
        <span @click="handleHerf"> 网站 https://www.1scq.cn </span>
      </div>
    </div>
  </div>
</template>

<script>
/* eslint-disable */
export default {
  name: 'MiniHome',
  methods: {
    handlePatch () {
      _hmt.push(['_trackEvent', 'software', 'download_patch', '登入器-下载补丁'])
      window.open('https://www.lanzous.com/b493322/')
    },
    handleJoin () {
      _hmt.push(['_trackEvent', 'QQ', 'join_QQ', '登入器-加入交流群'])
      window.open('https://jq.qq.com/?_wv=1027&k=587TANd')
    },
    handlePay () {
      _hmt.push(['_trackEvent', 'pay', 'download_patch', '登入器-充值'])
      window.open('http://pay1.wodepay.net/app/acquire/req?gid=558')
    },
    handleHerf () {
      window.open('https://www.1scq.cn')
    }
  }
}
</script>

<style scoped lang="scss">
.mini-home {
  display: flex;
  align-items: center;
  flex-direction: column;
  .table {
    border: 1px solid $font-color;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding-top: 4px;
    margin-top: 20px;
    div {
      height: 30px;
      width: 49%;
      border: 1px solid $font-color;
      cursor: pointer;
      margin-bottom: 4px;
      text-align: center;
      line-height: 30px;
    }
  }
}
</style>
